package com.xbongbong.admin.domain.dao;

import com.xbongbong.admin.domain.entity.MirrorChartEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @auther: xingxing.xiao
 * @date: 2020/3/6 006 11:29
 */
@Repository
@Mapper
public interface MirrorChartDao {

    Integer insert(MirrorChartEntity chart);

    Integer update(MirrorChartEntity chart);

    void insertBatch(@Param("list") List<MirrorChartEntity> chartList);

    Integer deleteByKey(@Param("key") Long key, @Param("mirrorId") Long mirrorId);

    MirrorChartEntity getByKey(@Param("key") Long key, @Param("mirrorId") Long mirrorId);

    List<MirrorChartEntity> findEntitys(@Param("param") Map<String, Object> param);

    Integer getEntitysCount(@Param("param") Map<String, Object> param);

}
